<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include/include :: header('修改定时任务')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="editForm" th:action="@{/admin/job}" th:object="${viewobject}">
			<input id="jobId" name="jobId" type="hidden" th:field="*{jobId}"/>
			<input type="hidden" name="oper" id="oper" th:value="${oper}"/>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">任务名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="jobName" id="jobName" th:field="*{jobName}" maxlength="60" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">任务分组：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="jobGroup" id="jobGroup" th:field="*{jobGroup}" maxlength="60" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">任务类型：</label>
				<div class="col-sm-8">
					<select id="jobType" name="jobType" class="form-control m-b" th:with="type=${@dict.getType('job_type')}">
		                <option th:each="dict : ${type}" th:text="${dict.label}" th:value="${dict.value}" th:field="*{jobType}"></option>
		            </select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">执行路径：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="executePath" id="executePath" th:field="*{executePath}" maxlength="250">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">执行文件：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="className" id="className" th:field="*{className}" maxlength="250">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">执行方法：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="methodName" id="methodName" th:field="*{methodName}" maxlength="60">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">执行参数值：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="methodParamsValue" id="methodParamsValue" th:field="*{methodParamsValue}" maxlength="1000">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">cron表达式：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="cronExpression" id="cronExpression" th:field="*{cronExpression}" maxlength="120" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">错失执行策略：</label>
				<div class="col-sm-8">
					<select name="misfirePolicy" class="form-control m-b" th:with="type=${@dict.getType('misfire_policy')}">
		                <option th:each="dict : ${type}" th:text="${dict.label}" th:value="${dict.value}" th:field="*{misfirePolicy}"></option>
		            </select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<textarea id="remark" name="remark" maxlength="250" class="form-control">[[*{remark}]]</textarea>
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="include/include :: footer" />
	<script th:src="@{/pages/monitor/job/jobEdit.js}"></script>
</body>
</html>
